package ae.pcfc.etks.online.common.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * TTscNametitle entity. @author Mohtisham.Salahria
 */
@Entity
@Table(name = "T_TSC_NAMETITLE", schema = "TSC_RW", uniqueConstraints = @UniqueConstraint(columnNames = "NT_DESC"))
public class TTscNametitle implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Byte ntId;
	private String ntDesc;
	private String ntCreateduser;
	private Date ntCreatedtime;
	private String ntModifieduser;
	private Date ntModifiedtime;
	private String ntStatus;
	private String ntDescArb;

	// Constructors

	/** default constructor */
	public TTscNametitle() {
	}

	/** minimal constructor */
	public TTscNametitle(String ntDesc) {
		this.ntDesc = ntDesc;
	}

	/** full constructor */
	public TTscNametitle(String ntDesc, String ntCreateduser,
			Date ntCreatedtime, String ntModifieduser, Date ntModifiedtime,
			String ntStatus, String ntDescArb) {
		this.ntDesc = ntDesc;
		this.ntCreateduser = ntCreateduser;
		this.ntCreatedtime = ntCreatedtime;
		this.ntModifieduser = ntModifieduser;
		this.ntModifiedtime = ntModifiedtime;
		this.ntStatus = ntStatus;
		this.ntDescArb = ntDescArb;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "NT_ID", unique = true, nullable = false, precision = 2, scale = 0)
	public Byte getNtId() {
		return this.ntId;
	}

	public void setNtId(Byte ntId) {
		this.ntId = ntId;
	}

	@Column(name = "NT_DESC", unique = true, nullable = false, length = 30)
	public String getNtDesc() {
		return this.ntDesc;
	}

	public void setNtDesc(String ntDesc) {
		this.ntDesc = ntDesc;
	}

	@Column(name = "NT_CREATEDUSER", length = 30)
	public String getNtCreateduser() {
		return this.ntCreateduser;
	}

	public void setNtCreateduser(String ntCreateduser) {
		this.ntCreateduser = ntCreateduser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "NT_CREATEDTIME", length = 7)
	public Date getNtCreatedtime() {
		return this.ntCreatedtime;
	}

	public void setNtCreatedtime(Date ntCreatedtime) {
		this.ntCreatedtime = ntCreatedtime;
	}

	@Column(name = "NT_MODIFIEDUSER", length = 30)
	public String getNtModifieduser() {
		return this.ntModifieduser;
	}

	public void setNtModifieduser(String ntModifieduser) {
		this.ntModifieduser = ntModifieduser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "NT_MODIFIEDTIME", length = 7)
	public Date getNtModifiedtime() {
		return this.ntModifiedtime;
	}

	public void setNtModifiedtime(Date ntModifiedtime) {
		this.ntModifiedtime = ntModifiedtime;
	}

	@Column(name = "NT_STATUS", length = 1)
	public String getNtStatus() {
		return this.ntStatus;
	}

	public void setNtStatus(String ntStatus) {
		this.ntStatus = ntStatus;
	}

	@Column(name = "NT_DESC_ARB", length = 30)
	public String getNtDescArb() {
		return this.ntDescArb;
	}

	public void setNtDescArb(String ntDescArb) {
		this.ntDescArb = ntDescArb;
	}

}